package com.egao.orderB.entity;

import com.egao.common.core.damon.utils.Utils;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 *
 * 实现类
 * @author : Doman
 * @date : 2020-06-15 16:11:54
 * @version ：1.0
 */
public class BillFeeVo implements Cloneable {

	private static final long serialVersionUID = 1L;

	private String currency;//币种
	private String type;//类型 应收应付
	private String total;//金额
	private String totalNoTax;//金额
	private String invoicename;//抬头

	public String getTotalNoTax() {
		if(Utils.isNotEmpty(totalNoTax)){
			BigDecimal bd = new BigDecimal(totalNoTax);
			bd = bd.setScale(2, RoundingMode.HALF_UP);
			return bd.toString();
		} else {
			return "";
		}
	}

	public String getInvoicename() {
		return invoicename;
	}

	public void setInvoicename(String invoicename) {
		this.invoicename = invoicename;
	}

	public void setTotalNoTax(String totalNoTax) {
		this.totalNoTax = totalNoTax;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTotal() {
		if(Utils.isNotEmpty(total)){
			BigDecimal bd = new BigDecimal(total);
			bd = bd.setScale(2, RoundingMode.HALF_UP);
			return bd.toString();
		} else {
			return "";
		}
	}

	public void setTotal(String total) {
		this.total = total;
	}

}